package com.example.pong;

import sheep.game.Sprite;
import sheep.graphics.Image;
import sheep.math.Vector2;

public class Computer extends Sprite {
	
	private final int speed = 400;
	
	public Computer(Image image){
		super(image);
	}
	
	public void update(Vector2 vector){
		if(this.getX()<vector.getX()) this.setSpeed(speed, 0);
		else this.setSpeed(-speed, 0);
	}
}
